package com.wc.alorithm_blue_bridge_history.littlewhite.Q231209.Q9490;

import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * @Author congege
 * @Description
 * @Date Created in 2023/12/9-19:25
 */
public class Main {
    static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int size = 0;
        while (m > 0 && size < n) {
            if (m >= 10) {
                out.print(9);
                m -= 9;
            } else {
                out.print(m);
                m = 0;
            }
            size++;
        }
        while (size < n) {
            out.print(0);
            size++;
        }

        out.flush();
        out.close();
    }
}
